package org.jeecg.modules.pay.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.pay.entity.ResourcesUsage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 资源用量
 * @Author: jeecg-boot
 * @Date:   2022-06-14
 * @Version: V1.0
 */
public interface IResourcesUsageService extends IService<ResourcesUsage> {

    /**
     * 获取列表
     * @param pageNo
     * @param pageSize
     * @param queryWrapper
     * @return
     */
    IPage<ResourcesUsage> getPage(Integer pageNo, Integer pageSize, QueryWrapper<ResourcesUsage> queryWrapper);

    /**
     * 增加用量实例
     * @param resourcesUsage
     */
    void add(ResourcesUsage resourcesUsage);

    /**
     * 修改
     * @param resourcesUsage
     */
    void edit(ResourcesUsage resourcesUsage);

    /**
     * 删除
     * @param id
     */
    void deleteId(String id);

    /**
     * 批量删除
     * @param asList
     */
    void removes(List<String> asList);

    /**
     * 通过名字查询
     * @param name
     * @return
     */
    List<ResourcesUsage> selectByName(String name);
}
